<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%@ page language="java" %>   
<%@ taglib uri="/WEB-INF/app.tld"    prefix="app" %>

<html>
<app:head title="Validation Errors">

<script>
	
		var m_dialogArguments = new Object();
		
		function init() {
			// need to get the dialig title here

			if (window.dialogArguments){
								
				m_dialogArguments = window.dialogArguments;
				divErrors.innerHTML = m_dialogArguments.m_divErrors;			
			    // divErrors.focus();
			    
			}
		}
		
		function executeClose() {
			this.close();
			if(opener != null) {
				opener.focus();
			}
		}
		
		function initBtnErrors(){
			try{
				var m_window = m_dialogArguments.m_window;
				m_window.enableBtnErrors();
			} catch (e) {
				// Do nithing
				;
			}
		}

	</script>
</app:head>
<body onload="init()" onbeforeunload="initBtnErrors();" bgcolor="#ffe4c4" style="margin: 2pt;">
  <table width="100%" height="100%">
    <tr>
    <td style="color: red; font-weight: bold; margin-bottom: 6pt;">You must correct the following errors before proceeding:</td>
    </tr>
    <tr>
    <td style="width: 100%; height: 100%; border: 1px solid #666698; margin-bottom: 6pt; padding: 2pt; vertical-align: top;" id="divErrors"></td>
    </tr>
    <tr>
    <td id="divButton" style="text-align: center;"><app:buttonClose/></td>
    </tr>
  </table>
</body>
</html>
